﻿using System;
using WinFormClient.ServiceReference1;
namespace WinFormClient
{
    interface IDataHandler
    {
        void LocalSave();
        int TryAddMesseage(Message msg, out RESULTINFO result);
        CreateState TryAddTopic(Topic topic, out RESULTINFO result);
        int TryGetGroups(out GroupSet groups, out RESULTINFO result);
        int TryGetMessages(int topicid, int start, int end, SortForm sortform, out MessageSet msgs, out RESULTINFO result);
        int TryGetTopics(int groupid, int startposition, int endposition, out TopicSet topics, out RESULTINFO result);
        LoginState TryLogin(out RESULTINFO result);
        AssignState TrySignUp(out RESULTINFO result);
        int TryLogout(out RESULTINFO result);
    }
}
